import triangle.Triangle;
import junit.framework.TestCase;

public class TriangleTest extends TestCase {
	public void testTriangle() {
		// TestCase1
		Triangle o1 = new Triangle(1, 1, 1);
		assertNotNull(o1);
	}
	public void testCategory() {
		// TestCase1
		Triangle o1 = new Triangle(1, 1, 1);
		assertEquals(Equilateral, o1.category());
		// TestCase1
		Triangle o1 = new Triangle(2, 2, 1);
		assertEquals(Isosceles, o1.category());
		// TestCase1
		Triangle o1 = new Triangle(2, 1, 2);
		assertEquals(Isosceles, o1.category());
		// TestCase1
		Triangle o1 = new Triangle(1, 2, 2);
		assertEquals(Isosceles, o1.category());
		// TestCase1
		Triangle o1 = new Triangle(2, 3, 4);
		assertEquals(Scalene, o1.category());
	}
}
